import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d = scanner.nextDouble();
        System.out.println(Test1.typeConversion(d));
    }
    public static int typeConversion(double d){
       int a = 0;
       if (d < 2147483647){
           a = (int) d;
       }
        return a;
    }
}
